﻿<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>

    <script>

        var wk = new Worker("funcaoWorker.js");

        //wk.terminate();

        wk.postMessage({ pessoa : 'teste123' });

        /*
        
        wk.onmessage = function(e) {
            console.log('msg');
            console.log(e);
        }

        wk.onerror = function(e) {
            console.log('err');
            console.log(e);
        }

        wk.addEventListener("message", function(e) { console.log('addMsg'); console.log(e); } );
        wk.addEventListener("error", function(e) { console.log('addErr'); console.log(e); } );

        */

    </script>

</head>
<body>

</body>
</html>
